<?php /* Smarty version 2.6.26, created on 2018-07-05 16:54:45
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/ad/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'img_size', 'D:\\www\\vweb/admin\\templates/ad/index.html', 32, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="nav"><span>广告列表</span></div>
<div class="filter">
	<a href="?m=ad&a=edit" class="add">添加广告</a>  
	
	<a href="?m=ad" class="<?php if ($_GET['status'] == ''): ?>option_ch<?php else: ?>option<?php endif; ?>">全部</a>
	<a href="?m=ad&status=1" class="<?php if ($_GET['status'] == '1'): ?>option_ch<?php else: ?>option<?php endif; ?>">运行中</a>
	<a href="?m=ad&status=0" class="<?php if ($_GET['status'] == '0'): ?>option_ch<?php else: ?>option<?php endif; ?>">过期</a> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<th width="60">类型</td> 
				<th>自定义名称</td> 
				<th width="180">广告位置</td>   
				<th width="120">起始时间</td>
				<th width="120">结束时间</td> 
				<th width="130">操作</td> 
				<th width="120">添加时间</td> 
		  	</tr>
	  	</thead>
		<tbody>
			<?php if ($this->_tpl_vars['data']['list']): ?>
				<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
					<tr> 
						<td><?php echo $this->_tpl_vars['i']['type_name']; ?>
</td> 
						<td><?php echo $this->_tpl_vars['i']['name']; ?>
</td> 
						<td>
							<span style="float:left;"><?php echo $this->_tpl_vars['i']['postion_name']; ?>
</span>
							<?php if ($this->_tpl_vars['i']['type'] == '2'): ?>
								<div class="upload_tip vtip" data-img="<?php if ($this->_tpl_vars['i']['content']): ?><?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['content'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '150x0') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '150x0')); ?>
<?php endif; ?>"></div>
							<?php endif; ?>
						</td> 
						<td><?php echo $this->_tpl_vars['i']['start_time']; ?>
</td> 
						<td><?php echo $this->_tpl_vars['i']['end_time']; ?>
</td>
						<td>
							<a href="?m=ad&a=edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="edit">修改</a> 
							<a href="?m=ad&a=del&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a>
						</td> 
						<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td> 
					</tr>
				<?php endforeach; endif; unset($_from); ?>
			<?php else: ?>
					<tr><td colspan="8">还没有数据，赶快添加吧！</td></tr>
			<?php endif; ?>
		</tbody> 
	</table> 
	<?php if ($this->_tpl_vars['data']['page']): ?><div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div><?php endif; ?>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 